<template>
  <div class="retroaction">
    <div class="mask"></div>
    <div class="mask_imgs">
      <div class="imgs">
        <img src="../assets/img/jt.png" alt="" />
      </div>
      
    </div>
    <div class="mask_share1">
      <div>请点击右上角</div>
      <div>将邀请链接发送给您的</div>
      <div>朋友或分享到朋友圈</div>
    </div>
    <div class="mask_share">
      <div style="padding-bottom: 12px;" @click="shareClick">
        <div class="imgs">
          <img src="../assets/img/shear.png" alt="" />
        </div>
        <span>生成海报分享</span>
      </div>
      <div class="btn_cancel" @click="cancelClick">取消</div>
    </div>
  </div>
</template>

<script>
export default {
  props: ["config"],
  data() {
    return {};
  },
  methods: {
    shareClick() {
      this.$emit('shareChange')
    },
    cancelClick() {
     this.$emit('cancelChange')
    },
  },
};
</script>

<style lang="scss" scoped>
.retroaction {
  display: flex;
  flex-direction: column;
  .mask {
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    position: fixed;
    overflow: hidden;
    z-index: 999;
    top: 0;
    left: 0;
  }
  .mask_imgs {
    width: 100px;
    height: 100px;
    text-align: center;
    z-index: 10000;
    border-radius: 1rem;
    padding: 2rem 0;
    position: fixed;
    right: 0;
    margin: auto 2rem;
    top: 0;
    font-size: 30px;
    img {
      width: 100px;
      height: 100px;
    }
  }
  .mask_share1 {
    max-width: 40rem;
    text-align: center;
    z-index: 10000;
    border-radius: 1rem;
    color: #fff;
    padding: 2rem 0;
    position: fixed;
    left: 0;
    right: 0;
    margin: auto 2rem;
    top: 20%;
    font-family: "KaiTi";
    font-size: 26px;
    div {
      padding: 5px 0;
    }
  }
  .mask_share {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    text-align: center;
    z-index: 10000;
    background: #fff;
    padding: 1.2rem 0 0;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    border-top-left-radius: 1rem;
    border-top-right-radius: 1rem;
    .imgs {
      width: 51px;
      height: 51px;
      overflow: hidden;
      border-radius: 15px;
      margin-right: 10px;
      margin-bottom: 5px;
      margin-left: 15px;
      img {
        width: 100%;
        height: 100%;
      }
    }
    span {
      color: #000000;
   }
    .btn_cancel {
      width: 100%;
      height: 40px;
      background-color: #f8f8f8;
      line-height: 40px;
      font-size: 1.3rem;
      color: #000000;
    }
  }
}
</style>